/**
 * @author MIAO
 * Created on 2011-11-13
 * For more information, please visit:ismiao.com
 */
package com.ismiao.java.Callback;
//在另一个方法中注册刚定义的回调接口
public class Tools {
	public void getTime(Callback call) {
		//System.currentTimeMillis()返回从 UTC 1970 年 1 月 1 日午夜开始经过的毫秒数
		long start = System.currentTimeMillis();
		call.executeMethod();
		long end = System.currentTimeMillis();
		System.out.println("cost time = " + (end - start)+"毫秒");
	}
}
